package com.andyage.admin.service;

import java.util.List;

import com.andyage.admin.bean.MenuBean;
import com.andyage.admin.bean.RoleMenuBean;

public interface IRoleMenuService {
	/**
	 * 批量插入身份所拥有的菜单
	 * @param roleMenu
	 */
	String insertRoleMenuInfoBybatch(List<RoleMenuBean> list)throws Exception;
	/**
	 * 查询某身份所拥有的菜单
	 * @param roleMenu
	 * @return
	 */
	String queryRoleMenuInfoByroleId(RoleMenuBean roleMenu)throws Exception;
	/**
	 * 通过身份id删除所拥有的菜单
	 * 重新分配菜单时先删除后插入
	 * @param roleMenu
	 */
	String deleteRoleMenuByRoleId(RoleMenuBean roleMenu)throws Exception;
	
	List<String> queryStaffRoleByStaffIdAndMenuId(RoleMenuBean roleMenu)throws Exception;
}
